package com.carnation._executor;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author: Sunny
 * @date: 2021/1/29
 * @version: v1.0.0
 */
public class ExecutorsTest {

    public static void main(String[] args) {
        ExecutorService executorService1 = Executors.newFixedThreadPool(1);
        ExecutorService executorService2 = Executors.newSingleThreadExecutor();
        ExecutorService executorService3 = Executors.newCachedThreadPool();
        ExecutorService executorService4 = Executors.newScheduledThreadPool(1);
    }

}
